package cn.wenhaha.job;

import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@Component
public @interface Job {

    String value() default "";

    String group() default "DefGroup";
    // corn 表达式
    String corn();
    // 是否启用
    boolean enable() default true;

    long jobId() default 0L;


}
